﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 制程报检单实体.
/// </summary>
[SugarTable("qms_busi_ipqcinspection","制程报检单")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBusiIpqcinspectionEntity: CLDEntityBase
{

    /// <summary>
    /// 报检单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code",ColumnDescription = "报检单号")]
    public string Code { get; set; }

    /// <summary>
    /// 报价日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Date",ColumnDescription = "报价日期")]
    public DateTime? Date { get; set; }

    /// <summary>
    /// 报检类型(抽检（C）巡检（X）首检（S）)
    /// </summary>
    [SugarColumn(ColumnName = "F_Type",ColumnDescription = "报检类型(抽检（C）巡检（X）首检（S）)")]
    public string Type { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_WorkshopId",ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string WorkshopId { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_TeamId",ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string TeamId { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_WorkshopSectionId",ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string WorkshopSectionId { get; set; }

    /// <summary>
    /// ⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可.
    /// </summary>
    [SugarColumn(ColumnName = "F_StationId",ColumnDescription = "⽣产建模: ⻋间、班组、⼯段、⼯位 任选其⼀即可")]
    public string StationId { get; set; }

    /// <summary>
    /// ⾮必输，从物料所属的⼯艺路线中下拉选择⼯序，可以多选.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProcessIdList",ColumnDescription = "⾮必输，从物料所属的⼯艺路线中下拉选择⼯序，可以多选")]
    public string ProcessIdList { get; set; }

    /// <summary>
    /// 物料.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode",ColumnDescription = "物料")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 检验⽅案Guid.
    /// </summary>
    [SugarColumn(ColumnName = "F_InspectionCase",ColumnDescription = "检验⽅案Guid")]
    public string InspectionCase { get; set; }

    /// <summary>
    /// ⽣产数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProductionQty",ColumnDescription = "⽣产数量")]
    public int? ProductionQty { get; set; }

    /// <summary>
    /// 检验员.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeCode",ColumnDescription = "检验员")]
    public string EmployeeCode { get; set; }

    /// <summary>
    /// 检验员名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_EmployeeName",ColumnDescription = "检验员名称")]
    public string EmployeeName { get; set; }

    /// <summary>
    /// ⽣产订单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_OrderNo",ColumnDescription = "⽣产订单号")]
    public string OrderNo { get; set; }

    /// <summary>
    /// 备注.
    /// </summary>
    [SugarColumn(ColumnName = "F_Remark",ColumnDescription = "备注")]
    public string Remark { get; set; }

    /// <summary>
    /// 状态：0 未执行 1 执行中  2 已执行 3 已关闭.
    /// </summary>
    [SugarColumn(ColumnName = "F_Status",ColumnDescription = "状态：0 未执行 1 执行中  2 已执行 3 已关闭")]
    public int? Status { get; set; }

    /// <summary>
    /// 0 未 1 已逾期.
    /// </summary>
    [SugarColumn(ColumnName = "F_Overdue",ColumnDescription = "0 未 1 已逾期")]
    public int? Overdue { get; set; }

    /// <summary>
    /// 否隔⽇⾃动关闭： Y开启 N关闭.
    /// </summary>
    [SugarColumn(ColumnName = "F_CloseFlag", ColumnDescription = "否隔⽇⾃动关闭：Y开启 N关闭")]
    public string CloseFlag { get; set; }

    /// <summary>
    /// 天标识：Y开启 N关闭.
    /// </summary>
    [SugarColumn(ColumnName = "F_DayFlag",ColumnDescription = "天标识：Y开启 N关闭")]
    public string DayFlag { get; set; }

    /// <summary>
    /// 天值.
    /// </summary>
    [SugarColumn(ColumnName = "F_DayValue",ColumnDescription = "天值")]
    public int? DayValue { get; set; }

    /// <summary>
    /// 小时标识：Y开启 N关闭.
    /// </summary>
    [SugarColumn(ColumnName = "F_HourFlag",ColumnDescription = "小时标识：Y开启 N关闭")]
    public string HourFlag { get; set; }

    /// <summary>
    /// 小时值.
    /// </summary>
    [SugarColumn(ColumnName = "F_HourValue",ColumnDescription = "小时值")]
    public int? HourValue { get; set; }


}